package com.itheima.userconsumer.hystrix;


import com.itheima.b2b.commonmodule.model.User;
        import com.itheima.userconsumer.service.UserService;
import org.springframework.stereotype.Component;

@Component
public class UserServiceHystrix implements UserService { //这个实例，理解了失败的逻辑，对应于所有接口中的方法，每个方法都有失败的处理逻辑。
    @Override
    public User login(String uname) {
        System.out.println("userServiceHystrix：“+uname+”用户登录失败！");
        return null;
    }

    @Override
    public int register(String upassword, String uname, String usex) {
        System.out.println("userServiceHystrix：注册失败！");
        return 0;
    }
}
